﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ledict.ConditionExtract.DAL;
using System.Data;
using Ledict.ConditionExtract.Model;

namespace Ledict.ConditionExtract.BLL
{
   public  class WordBankBLL
    {
       WordBankDAL dal = new WordBankDAL();
        /// <summary>
        /// 增加一条数据
        /// </summary>
       public bool Add(SYS_WordBank Model)
        {
            return dal.Add(Model);
        }
       public bool Update(SYS_WordBank Model)
       {
           return dal.Update(Model);
       }
        /// <summary>
        /// 获得数据列表
        /// </summary>
        public DataTable GetList()
        {
            return dal.GetList();
        }
        /// <summary>
        /// 删除一条数据
        /// </summary>
        public bool Delete(string WB_ID)
        {

            return dal.Delete(WB_ID);
        }

        public DataTable GetWB_IDByHeadword(string HeadWordId)
        {
            return dal.GetWB_IDByHeadword(HeadWordId);
        }
        
      
    }
}
